package com.angel.bo.auth.client.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author: Haibo.Mei [Haibo.Mei@ge.com]
 * @Description: 权限配置属性
 * @Date: 11:00 2018/1/30
 */
@Data
@ConfigurationProperties(
        prefix = "auth.user"
)
public class AuthProperties {


    /**
     * 请求头
     */
    private String tokenHeader;

    /**
     * 如果 为true 则所有token验证
     */
    private boolean enable = false;


    private int expire;



    private AuthProperties.PubKey pubKey;

    private AuthProperties.PriKey priKey;



    @Data
    public static class PubKey{
        private String path;
    }

    @Data
    public static class PriKey{
        private String path;
    }

}
